<html>
<body>
<h2>Hello World!</h2>

<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
<script type="text/javascript">

    /*
    * 自动触发事件
    * */
    window.onload = function () {
        window.location.href="${pageContext.request.contextPath}/login/toLogin.action";
    };
</script>

</body>
</html>
